package com.woniuxy.controller;


import com.woniuxy.commons.annotation.RuleValidate;
import com.woniuxy.controller.form.SaveRulesPowerForm;
import com.woniuxy.controller.info.Result;
import com.woniuxy.service.RuleMenusService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Kevin Martin
 * @since 2022-03-16
 */
@RestController
@RequestMapping("/ruleMenus")
public class RuleMenusController {
    @Resource
    private RuleMenusService ruleMenusService;

    @RuleValidate
    @PostMapping("saveRulesPower")
   public Result<?> saveRulesPower(@RequestBody SaveRulesPowerForm saveRulesPowerForm ){
        return ruleMenusService.saveRulesPower(saveRulesPowerForm);
   }

}

